#—*—coding:utf-8 -*-
#@Time        :2022/7/18 23:32
#@Author      :dhx
#@File        :run_station.py
# @Software: PyCharm
import unittest
import time

from config.config import CASES_PATH
from config.config import REPORTS_PATH
from BeautifulReport import BeautifulReport
suite=unittest.defaultTestLoader.discover(CASES_PATH,'test_station_cases.py')
now=time.strftime("%Y%m%d-%H%M%S")
report_name="test_crm_{}.html".format(now)

runner=BeautifulReport(suite)
runner.report(description="美化报告",
              report_dir=REPORTS_PATH,
              filename=report_name
              )
